﻿using System;
using Reap.Common.Runtime.Dependency.Ninject.InRequestScope;
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Web;

//把请求周期注册到模块中
[assembly: System.Web.PreApplicationStartMethod(typeof(Reap.Common.Runtime.Dependency.Ninject.NinjectWebCommonStartupTask), "Start")]
namespace Reap.Common.Runtime.Dependency.Ninject {
	public static class NinjectWebCommonStartupTask {
		public static void Start() {
		DynamicModuleUtility.RegisterModule(typeof(OnePerRequestHttpModule));
		}
	}
}
